package com.education.project.model;

import java.io.Serializable;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import lombok.Data;

@Data
public class LoginUser implements Serializable {
	private Integer id;
	@NotBlank(message="用户名不能为空")
	private String loginname;
	private String password;
	@NotBlank(message="姓名不能为空")
	private String fullname;
	@NotNull(message="用户类型不能为空")
	@Min(value=1,message="请选择用户类型")
	private Integer loginUserTypeId;
	private LoginUserType loginUserType;
}
